package com.longma.server.pojo.dto;

import com.longma.server.constant.enums.GeneralStateEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SysUserDTO {
    @ApiModelProperty("登录账号")
    @NotBlank(message = "登录账号不能为空")
    @Length(max = 16,message = "登录账号最长为16个字符")
    private String loginName;

    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    @Length(max = 8,message = "姓名最长为8个字符")
    private String realName;

    @ApiModelProperty("性别")
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @ApiModelProperty("头像")
    private String photo;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("邮件")
    private String email;

    @ApiModelProperty("微信")
    private String wechat;

    @ApiModelProperty("用户状态")
    @NotNull(message = "用户状态不能为空")
    private GeneralStateEnum state;
}
